import request from '@/utils/request'

// 根据ID更新权限点详情
export const updatePremissionByIdRequest = data => request.put(`/sys/permission/${data.id}`, data)

// 根据ID获取权限点详情
export const getPremissionByIdRequest = id => request.get(`/sys/permission/${id}`)

// 根据id删除权限点
export const deletePremissionByIdRequest = id => request.delete(`/sys/permission/${id}`)

// 添加权限点
export const addPremissionRequest = data => request.post('/sys/permission/', data)

// 获取所有权限点
export const getAllPremissionRequest = () => request.get('/sys/permission/')

